<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.0.0.042823
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2023/5/16
 * Time: 20:53
 */

namespace app\validate;

use think\Validate;

class WithdrawApplyValidate extends Validate
{
    protected $rule = [
        'apply_money'       => 'require|integer',
        'id'                => 'require|integer',
        'settlement_status' => 'require|integer',
        'page'              => 'require|integer',
        'limit'             => 'require|integer',
    ];

    protected $message = [
        'apply_money.require'       => '提现金额缺失',
        'id.require'                => 'ID缺失',
        'id.integer'                => 'ID不合法',
        'settlement_status.require' => '审核值缺失',
        'settlement_status.integer' => '审核值不合法',
        'page.require'              => '分页缺失',
        'page.integer'              => '分页不合法',
        'limit.require'             => '分页缺失',
        'limit.integer'             => '分页不合法',

    ];

    /**
     * 场景
     * @var string[][]
     */
    protected $scene = [
        'withdraw' => ['apply_money'],
        'audit'    => ['id', 'settlement_status'],
        'list'     => ['page', 'limit'],
    ];
}